package com.platform.service;

import com.platform.dao.ApiTopicMapper;
import com.platform.entity.ApiTopicVo;
import com.platform.utils.Query;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Service接口
 *
 * @author zhurusen
 * @email 524227263@qq.com
 * @date 2018-05-15 15:50:14
 */
@Service
public class ApiTopicService {

    @Autowired
    private ApiTopicMapper apiTopicMapper;

    public List<ApiTopicVo> selectPage(Query query) {
        return apiTopicMapper.queryList(query);
    }

    public ApiTopicVo selectOne(Long id) {
        return apiTopicMapper.queryObject(id);
    }
}
